# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer:
pkgname="freedoom"
pkgver="0.12.1"
pkgrel=1
pkgdesc="an entirely free software game running on a Doom engine."
url="https://freedoom.github.io"
arch="noarch !s390x"
license="BSD-3-Clause-Clear"
makedepends="python3 py3-pillow make deutex asciidoc asciidoctor"
options="!check"
subpackages="$pkgname-doc"
source="https://github.com/freedoom/freedoom/releases/download/v$pkgver/freedoom-$pkgver.tar.xz"

build() {
	make
	make -C manual
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr install
}

sha512sums="08a8489e1bbd9418262bfefaa9afe67a281b6f3fd38f77ac822438da434229bb034077e53658c06fa93cbf3ba3c5c25dab5fe1844fe23043e310d21866e12810  freedoom-0.12.1.tar.xz"
